package com.peas.platform.module.icims.base.approve.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("审批模版节点")
public class ApproveNodeVo extends BaseVo {

    // 【审批模版表】
    @Comment(value = "审批模版ID")
    @ApiModelProperty(value = "审批模版ID")
    private Long approveId;

    @Comment(value = "审批节点编号")
    @ApiModelProperty(value = "审批节点编号")
    @Max(value = 999, message = "审批节点编号取值无效")
    private Integer approveNodeNo;

    @Comment(value = "审批节点名称")
    @ApiModelProperty(value = "审批节点名称")
    @Size(max = 100, message = "审批节点名称不能超过100个字符")
    private String approveNodeName;

    // 1:用户、2:组织架构、3:角色
    @Comment(value = "审批节点类型")
    @ApiModelProperty(value = "审批节点类型")
    @NotBlank(message = "审批节点类型不能为空")
    @Size(max = 20, message = "审批节点类型不能超过20个字符")
    private String approveNodeType;

    // 【组织架构表】多ID逗号分隔
    @Comment(value = "审批节点组织架构ID")
    @ApiModelProperty(value = "审批节点组织架构ID")
    @Size(max = 250, message = "审批节点组织架构ID不能超过250个字符")
    private String approveNodeOrgId;

    // 【角色表】多ID逗号分隔
    @Comment(value = "审批节点角色ID")
    @ApiModelProperty(value = "审批节点角色ID")
    @Size(max = 250, message = "审批节点角色ID不能超过250个字符")
    private String approveNodeRoleId;

    // 【用户表】多ID逗号分隔
    @Comment(value = "审批节点用户ID")
    @ApiModelProperty(value = "审批节点用户ID")
    @Size(max = 250, message = "审批节点用户ID不能超过250个字符")
    private String approveNodeUserId;

    @Comment(value = "是否会签节点", enumType = "CommonYesNo")
    @ApiModelProperty(value = "是否会签节点", notes = "枚举取值:CommonYesNo")
    @Size(max = 20, message = "是否会签节点不能超过20个字符")
    private String isCountersign;

}
